package com.julang.check.utils;

import com.julang.check.bean.CommonEntity;
import com.julang.check.translate.baidu.BaiduTranslator;
import com.julang.check.translate.goole.GoogleTranslator;
import com.julang.check.translate.jinshan.JinshanTranslator;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

import static com.julang.check.utils.CommonData.*;
/**
 * @author 赵自强
 * */
public class SingnalData {
    public static List<CommonEntity.Language> TranslateMode = new ArrayList<>();
    /**日期格式单例*/
    public static SimpleDateFormat df = new SimpleDateFormat(DATEFORMATTER);
    public static BaiduTranslator baiduTranslator = new BaiduTranslator(APP_ID, SECURITY_KEY);
    public static GoogleTranslator googleTranslator = new GoogleTranslator();
    public static JinshanTranslator jinshanTranslator= new JinshanTranslator();
    public static String filePath = CommonData.LINUXFILEPATH;
    public static boolean isWindows() {
        return System.getProperties().getProperty("os.name").toUpperCase().contains("WINDOWS");
    }

}
